package com.cygsunri.parkingwarn.controller;

import com.cygsunri.commonutils.response.ResultWrapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author hanyuanLiu
 * @site USER_M
 * @company 中才实用
 * @create 2021-03-30 16:06
 */
@RestController
@RequestMapping("/tempTwo")
public class TempTestController {


    @GetMapping("/listTest")
    public ResultWrapper<Object> listTest(){
        Map<String,String> testMap = new HashMap<>();
        testMap.put("temp","测试1");
        testMap.put("level","测试等级1");
        return ResultWrapper.ok("测试数据",testMap);
    }
}
